package com.haramasu.quartz.job;

import com.haramasu.quartz.service.Helloworld;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;
import org.springframework.stereotype.Component;

/**
 * @Author: DINGSHUO
 * @Description:
 * @Date: Create in 21:27 2019/1/13
 */
@Component
public class MyJob extends QuartzJobBean {
    private Helloworld helloworld;

    @Override
    protected void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        helloworld=new Helloworld();
        helloworld.hello();
    }
}
